﻿<Window x:Class="ProfilerPDS.ApplicationChooserWindow"
		xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
		xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
		Title="Choose A Log"  
		
		WindowStartupLocation="CenterScreen" SizeToContent="WidthAndHeight">
	<Grid>
		<Grid.ColumnDefinitions>
			<ColumnDefinition Width="1*"/>
		</Grid.ColumnDefinitions>
		<Grid.RowDefinitions>
			<RowDefinition Height="1*"/>
			<RowDefinition Height="auto"/>
		</Grid.RowDefinitions>
		<DataGrid  Name="applicationsDg"  IsSynchronizedWithCurrentItem="True" Width="auto" Height="auto"   
					AutoGenerateColumns="False" CanUserReorderColumns="False"  CanUserResizeRows="False" SelectedCellsChanged="applicationsDg_SelectedCellsChanged">
			<DataGrid.Columns>
				<DataGridTextColumn Header="Name" Width="SizeToCells"   
										   Binding="{Binding Path=Name}" 
										   IsReadOnly="True" MinWidth="100" />
				<DataGridTextColumn Header="Path" Width="SizeToCells"   
										   Binding="{Binding Path=Path}" 
										   IsReadOnly="True" MinWidth="100" />
				<DataGridTextColumn Header="Time" Width="SizeToCells"   
										   Binding="{Binding Path=Time}" 
										   IsReadOnly="True" MinWidth="100" />

			</DataGrid.Columns>
		</DataGrid>
		<StackPanel  Orientation="Horizontal" Grid.Column="0" Grid.Row="1" HorizontalAlignment="Center" VerticalAlignment="Center">
			<Button Name="OkBtn" Margin="0,15,15,10" Padding="15,0,15,0" IsDefault="True"  Click="OkBtn_Click">Ok</Button>
			<Button Name="CancelBtn" Margin="0,15,15,10" Padding="15,0,15,0" IsCancel="True" Click="CancelBtn_Click">Cancel</Button>
		</StackPanel>
	</Grid>
</Window>
